package com.have.blog.web.service;


import com.have.blog.base.wrapper.Wrapper;
import com.have.blog.web.dto.BlogDto;

import java.util.List;
import java.util.Set;

public interface WebBlogService {
    List<BlogDto> getBlogPageByLevel(Integer level, Integer pageNum, Integer useSort);
    List<BlogDto> getHotBlog();
    List<BlogDto> getNewBlog(Integer pageNum, Integer pageSize);
    List<BlogDto> getBlogBySearch(Integer currentPage, Integer pageSize);

    BlogDto selectBlogByUid(Integer uid);

    List<BlogDto> getSameBlogByBlogUid(Integer uid);

    Set<String> getBlogTimeSortList();

    List<BlogDto> getArticleByMonth(String monthDate);

    List<BlogDto> getListByBlogSortUid(Integer blogSortUid, Integer pageNum, Integer pageSize);

    List<BlogDto> searchBlogByTag(Integer tagUid, Integer pageNum, Integer pageSize);

    List<BlogDto> getBlogByUids(List<Integer> uids);

    List<BlogDto> getBlogByKeyword(Integer pageNum, Integer pageSize, String keywords);

    List<BlogDto> searchBlogByAuthor(String author, Integer pageNum, Integer pageSize);

    Wrapper praiseBlogByUid(Integer uid);

    Wrapper getBlogPraiseCountByUid(Integer uid);

}
